package org.dbwebx.flex.control.menu
{

	import mx.events.FlexEvent;
	
	/**
	 * 
	 * @author Izzet_Mustafayev
	 */
	public class MenuItemClickEvent extends FlexEvent
	{
		
		/**
		 * Creates <code>MenuItemClickEvent</code> 
		 * @param dataObject the data object to pass to handler
		 * @param menuItem the menu item triggered event
		 */
		public function MenuItemClickEvent(dataObject:Object, menuItem:MenuItem)
		{
			super("org.dbwebx.flex.control.menu.MenuItemClickEvent", true, false);
			_data = dataObject;
			_menuItem = menuItem;
		}
		/**
		 * The event data object.
		 * @default null
		 */
		private var _data:Object;
		
		/**
		 * The <code>MenuItem</code> activated event.
		 * @default null
		 */
		private var _menuItem:MenuItem;
		
		public function get data():Object
		{
			return _data;
		}
		
		public function get menuItem():MenuItem
		{
			return _menuItem;
		}

	}
}